package com.example.springtest.Controller;

import cn.hutool.core.io.IoUtil;
import com.example.springtest.Service.ServiceImp;
import com.example.springtest.user;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.List;

@RestController
public abstract class ControllerImp implements Controller{
    @Autowired
    ServiceImp serviceImp;
    @Override
    @RequestMapping("/list")
    public List<user> responseList() throws FileNotFoundException {
        List<user> result=serviceImp.findAll();
        return result;
    }
}
